package com.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hospital.domain.pojo.Orders;
import com.hospital.domain.utils.Result;

import java.util.List;

public interface OrdersService extends IService<Orders> {
    Result<List<Orders>> listAll(Integer status);
    Result<List<Orders>> listByPatient(Integer pId);
    Result<Void> pay(Integer orderId);
    Result<Void> refund(Integer orderId);
    Result<Integer> createDepositOrder(Integer pId, Integer aId);
    Result<Integer> createDrugOrder(Integer pId, Integer purchaseId, String itemTitle, java.math.BigDecimal amount);
}

